<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    var arr = new Array();
    arr.push(1,2,3,4,5);
    arr.forEach(function(value){
        console.info(value)
    })

    for(var index in arr){
        console.info(arr[index])
    }

    for(var value of arr){
        console.info(value)
    }

    for(var value of 'abcdesd'){
        console.info(value)
    }
</script>

</body>
</html>